package com.naizhuai.ui.user.login;

import com.naizhuai.BasePresenter;
import com.naizhuai.BaseView;

/**
 * @author：lichenxi
 * @date 2018/2/23 11
 * email：525603977@qq.com
 * Fighting
 */
public interface LoginContract {

    interface View extends BaseView<Presenter>{
         void showLoading(boolean state);
         void loginSuccess();
         void loginFail(String errormsg);
         void userExist(String username,String imgurl);
         void saveUidSid(String uid,String sid);
         void showPhoneError();
         void onlyTest(String phoneNumber);
    }

    interface Presenter extends BasePresenter<View>{
        void userLogin(String phone,String password);
        void searchLocalUser(String phone);
        void cancelRequest();
    }
}
